<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">


		<p:menu>
			<p:submenu label="Navigation">
				<p:menuitem rendered="#{!sessionBean.loggedIn}">
					<h:link value="Login"
						outcome="login_frame.xhtml?faces-redirect=true"
						includeViewParams="true">
					</h:link>
				</p:menuitem>
				
				<p:menuitem rendered="#{sessionBean.loggedIn}">
					<h:link value="Logout"
						outcome="login_frame.xhtml?faces-redirect=true"
						includeViewParams="true">
					</h:link>
				</p:menuitem>

				<p:menuitem rendered="#{!sessionBean.loggedIn}">
					<h:link value="Register"
						outcome="register_frame.xhtml?faces-redirect=true"
						includeViewParams="true">
					</h:link>
				</p:menuitem>

				<!-- <p:menuitem>
					<h:link value="Event Buchen"
						outcome="book_event_frame.xhtml?faces-redirect=true"
						includeViewParams="true">
					</h:link>
				</p:menuitem> -->

				<p:menuitem rendered="#{sessionBean.adminStatus}">
					<h:link value="Event Eintragen"
						outcome="create_event_frame.xhtml?faces-redirect=true"
						includeViewParams="true">
					</h:link>
				</p:menuitem>

				<!-- <p:menuitem>
					<h:link value="Event Bearbeiten"
						outcome="edit_event_frame.xhtml?faces-redirect=true"
						includeViewParams="true">
					</h:link>
				</p:menuitem> -->

				<p:menuitem rendered="#{sessionBean.loggedIn and !sessionBean.adminStatus}">
					<h:link value="Meine Buchungen"
						outcome="user_bookings_frame.xhtml?faces-redirect=true"
						includeViewParams="true">
					</h:link>
				</p:menuitem>

				<p:menuitem rendered="#{sessionBean.loggedIn}">
					<h:link value="Mein Profil"
						outcome="user_profile_frame.xhtml?faces-redirect=true"
						includeViewParams="true">
					</h:link>
				</p:menuitem>
				
				<p:menuitem rendered="#{sessionBean.loggedIn and !sessionBean.adminStatus}">
					<h:link value="Meine Tickets"
						outcome="user_tickets_frame.xhtml?faces-redirect=true"
						includeViewParams="true">
					</h:link>
				</p:menuitem>

				<p:menuitem rendered="#{sessionBean.adminStatus}">
					<h:link value="Alle User"
						outcome="users_frame.xhtml?faces-redirect=true"
						includeViewParams="true">
					</h:link>
				</p:menuitem>

				<p:menuitem>
					<h:link value="Alle Events"
						outcome="events_frame.xhtml?faces-redirect=true"
						includeViewParams="true">
					</h:link>
				</p:menuitem>

			</p:submenu>
		</p:menu>
	</ui:composition>